package com.thinkfit.jy.adapter;

import android.annotation.SuppressLint;
import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.common.lib.bean.ApplicationBean;
import com.thinkfit.jy.R;
import com.thinkfit.jy.utils.ImageLoadUtils;

import org.jetbrains.annotations.NotNull;


public class AppHomeAdapter extends BaseQuickAdapter<ApplicationBean, BaseViewHolder> {

    private Context mContext;

    public AppHomeAdapter(Context context) {
        super(R.layout.item_app_home);
        mContext = context;
    }


    @SuppressLint("MissingPermission")
    @Override
    protected void convert(@NotNull BaseViewHolder helper, ApplicationBean bean) {
//        helper.setImageDrawable(R.id.ivIcon, bean.getIcon());
        ImageLoadUtils.getInstance(getContext()).setImageUtlRadius(helper.getView(R.id.ivIcon),bean.getIcon(),0,7);
    }


}
